Change to constructor function.