Passes the positions to controller