Resolved too many formatting arguments warning and sigabrt due to incorrect key values (related to formatting issue as well)