Changed to Boolean.getBoolean because better way of doing it.