copy, and modified sit-for function.