Adding while controller