rename functions, make idle-delay customizable