Make function mark private and change the default value of $all to false.