Change to aprroximately compare floats instead of equality