Adjusted threshold return, thanks to @niggler