Changed Constructor not to use methods of class.