Added ability to send big resources (more than 4MB)