Added .__register__ metamethod