Main script for code execution