Several working functions added. Changing directory