Added safety check.