Finished first pass through of code to map across different sabs