Added non-linear grid generation