Main method now behaves