Added check that factors are correct