Ported cushion code to gh-pages format