Switched to input address beginning and ending