Minor code beautifulization.