Barely working variable implementation