Yes, that code is definitely not PBP. Although, it can be easily modified to work in PBP.