Another adaptive boilerplate