Original: He was then transferred to the Indian Army, initially joining the Bengal Staff Corps as a Lieutenant in 1887 and being attached to  the 39th Bengal Infantry, later transferring to 29th Punjabis.
Simplified: First joining the Bengal Staff Corps as a Lieutenant in 1887 and being part of the 39th Bengal Infantry, and then joining the 29th Punjabis.