Fixed all warnings. Runs - sort of...