Debugged code so console will not be spammed with exceptions most of the
time.
Updated version to 1.0