Added automatic resourcing of shell