Added profile file with tree function