Cleaned up background processing a bit