Added line to ensure that mx starts at 0.