Added initial version of stack reconstruction script