Made it work with frozen objects; Added some debug helpers.