Updated...Main class is deprecated.