Fixes for formatting and using the proper api sync function call