added delay motion functionality