Implement helper function for 'watch' to retrieve lines variable changes