Modified preprocess_kinem, still in progress