Fixing naive priority queues; Automatizing remote calls for slave nodes