Changed into ArrayList for more performance.