Thanks for the feedback. Sorry for the performance issues since it was my first project and I didn't know much about optimization.