Moved profile prep to script