Define all methods before executing code in scope