Added background process and lock only for one process