Don't forget about unlocking the mutex