Added basic read/write support