Program finished

Program now works fine.