Removed unneeded main methods.