Declare functions and closures in a consistent manner