Modify initializing options(fragmentCode, callback). Store some data for histogram generation.