Fixed Z speed issues and some other bugs.