REST functionality added