Script to tie everything together