Fixed SecuRom fail startup
Cleaned up some code