Used variables correctly