Created primitive remote method invocation.
It is possible to start and pause a thread in server, still working on resuming.