Change to using arrays instead of lists for performance