Finally corrected. Step size must be adjusted though.