Functions used in Van Rijn's lab