Fix indenting and add messaging when rate limit is exceeded