Partially fleshed out analyze method