Refactored PID syntax to 2 functions in init