Added wrap() function to set or get wrap status