Removing the need for EmptyConstructorException