sendFile function added.