Something along the lines of this to speed up the process