Quick hacky implementation as a guide.