Adding external for unit testing purposes.