Added new functions
Added close-port