Amended initialize code