Actually, code is working pretty fine