Debugged and cutoffs implemented