Added constructor and object creator.