Damn twiddling bits