Modalizing: A Function-Driven Approach