Added functionality for the marking procedure.