Added Generic Functions Script