Removed main method and other functionality which isn't required.