Exception might occur. Added try/catch for now. Need to fix it later.