Change when we enter directories. Move functions towards top.