Added piezo functions to library.