Optimal timing and the Weber function.