Return in/out/total as different keys and not just the total