Added some functions that accidentally got cut in style fixes.
Added fixes to background/controller from accidental deletions of code.
Removed code duplication.
More Style Fixes!