Pulled out bounce code into its own section