Added mark calculation