Start to implement error exception handling