Updated backgroundshifter to move through a set number of cycles before
stopping.

Restructured the code to make it more readable.