Adjustable retention time at the push of a button