Improve features of carmen script.