Added spinner functionality.