Making some changes to the init method