Added Functions

Most functions added