Added regexp parsing and file reading.