Some changes to startactivity for dry run