Refatoring code.