Move function and change ping logic
And change port value