Tidying up everywhere
forloop.rindex0 ftw
Tidying