Wrote up numpy type handling.