Detects unused variables