Auto foaming