Pass address space numbers from command line

Patch by Daniel Liew with some changes