Added main script with basic functionality