Since the predicate function is static, define it outside of `Accelerometer` and then you'll avoid this crazy looking multi-line thing