Cleaned up newx/newy

Thanks to /u//u/Schmeidenbacher for help with this one