Added attempt a heuristic.
Added stub comments for possible necessary functions.