Adding Mutex implementation