Added 'custom' flag to IR command (issue #81).