Major rework of RPC - added Procedure class