With some bugs
Fixed bug
Order functions is added