Still tweaking to find an ideal solution for the weird error.