Create function modified