Handling nulls to some extent.