Added peripheral manager functionality for read and write