Added some xyz functions