P-controller working