Added on attach to frags