Added optional to wrap() and else statement for if domain is given in command