Fixed all issues, program works