Updating how hooks work