Put code in constructor into init