Finished mod. Very hacky.