Break code into other method