Added various bug fixes and Frostbite 4 support