Removed repetitive functions. Instead use using and usingWithHeader.