Loading spinner thingy and some code cleanup to remove console logs.