Added recrypted write functions for channels and outputs