Move abs code to abs file