Added some metatable functions