Added functions and notes