New version of remotetask class