Recipe from kelisto in bootstrap.