Some formating tasks and error managing