Update MASTER_v3

Changed functions for PID calling.