Faster mapping script