Started writing basic logic.