Tested and fixed Linux stuff.