Adds new function and rearranges sorting
P2P asynchronous EA with REST and node.js ready