Custom paster in flattener