Bones of main script