Completed main implementation of style creation