File handling of Motion