At the beginning of the method