Added basic write support