Change workings of function command