Improvements upon code written by mojang