Update: added option to change run from directory