Tied three scripts together