Yet another attempt at a working rake task