Added data to flash storing.

Untested, might be very very buggy.