Updated to eventmachine