Running functions with limitation