Modifed to suite my own preferences