Working torque implementation for motif prediction