Please add unit tests for this method.