Copypasta'd and tweaked base from old project.