Working on motion codes