Updated to add support for background task processing.