Fixed #5 get process function