Fixed error + added update and delete methods.