Added ParseMask/LookupHandle functions and refactored StartWatch() to use handles instead of just straight loggin