Added getMetatable API