Changed variables and added footer