Avoid a loop when updating the source position variables