Ready the handler functions.