Bug fixes. Changed interface for creating objects to be able to detect own avatar.