proper handeling of movingtime variable added. Checkbox to alter value also added.