Renamed to bat and added unit tests