Modified numbering on mark() funtion.