Refactored to move float to beginning of evaluation since it affected outcome.