Re-implement map scripts