Removed main method, replaced with methods.