Implements styles saving.