Added in some better error checking for when there are no marks