Added map version check in user-code.