Fixed some issues and accepted.