Limit the number of bounces