Added function to read request body