Removed warning causes by unused variable.