Compress some of the code for readabilty