Start writing the script for spatial decomposition