Added Necessary Functions