Better way of error checking.
	I am having db populator error. So trying this way now.