Modified bottle script.