Finish the background logic of the project