Functionalize code