Implement RMI part of issue #5, nearly there