Moved call to method outside the method