Added wsgiref and application level function