Shorten code, imrpove reliability.