Adding and updating code on inference