Some analysis tools