Add loop to accepting socket requests