This is not the best solution, but is acceptable for now.