Added check that scan goes from -x to x