Scripts and functions init