Add function stock compilation check