Backgrounds functionality added. Tons of bugfixes.