Removed unncessary global threshold.