Changing init function