PouyanA - Added calls to create the init call and refactored the code a little bit more.