Merged 3 methods into the constructor (this is only temporary)