General tidy and IE compatibility improvements

Signed-off-by: Luke Oatham <lukeoatham@gmail.com>