Little refactoring on pid sinced control process