Fixed compile errors, removed unneeded infraredLoad stuff