Better script for customized categories