Update code to integrate Bean