Added code to split large motions into two smaller motions