Beef function fix