Add utilities code