Added support for position status flag in data processing function and adapted related code.