Uncommented code for background proccess support.