Added local variables slide
Fixed functions