Added optional cost delegate method. Updated README.