Improve Marked function