Add function option for chartlogic