Tweaked parse cost method to allow non-existent cost key.