Add comp routine