Fixed serveral problems; will now use keep-alive