Cleaned up code. MAde it legible.