Simple implementation which supports event based servers too