Add checks to some methods.