Forgot mutex in function, added now