Create function instead of setter block