Create function, parse it, manages variables