Removed extraneous 'end'. Moved flush method. Renamed get method as user. Replaced user_id with generic calls to user.'