Added a mechanism for registering new handles