Define the methods in the right place