Separated into two different functions - should fix the issues.
Separated into two different functions - should fix the issues.

magmastonealex/PGApp,magmastonealex/PGApp,magmastonealex/PGApp,magmastonealex/PGApp,magmastonealex/PGApp,magmastonealex/PGApp,magmastonealex/PGApp,magmastonealex/PGApp