Separate main method