Added another IR calculation and fixed reset()