When my code finally ends up working fine