Moved content of init() into constructor;