Setup Variables and Basic Functions

Setup Variables and Basic Functions