Null check added.