Program is working as intended