Anonymous init function replaced with named function