Added skip paren function
Added mutex check and tests