Made main script directly runnable.