Added inverse map for invtype