Working on writing object to server's file