Added undefined checking