Amended last commit with initialization of variables.