Added message passing, now using global obj