Added diag and fence methods
Added diag and fence methods