Added an initializer function