Made some modifications. Will add linking and other features later.