Make AppParams a struct