Finished up the code, everything works smooth now.