Updated with pool example from master