Correct function syntax
Rearrange background definitions