Refactor the background way