Fixes addition of :details information
DRYies the code a little bit