Added method to the main