Declare functions and variables.