Better function declarations, more abstraction.