Add tmp variable to make sure that maps do not interfere