Distributed scripts into hierarchy for improved readability