to assist General Godwin in the capture of Martaban and Rangoon. Direct British rule in India After the end of Company rule in India following the Indian rebellion of 1857, the force came under the command of the British government of India and was formally named "Her Majesty's Indian Navy". 1858–1934 Her Majesty's Indian Navy resumed the name "Bombay Marine" from 1863 to 1877, when it was renamed "Her Majesty's Indian Marine" (HMIM). The Marine then had two divisions; an Eastern Division at Calcutta and a Western Division at Bombay. As the HMIM wasn't covered by "Naval Discipline Act, 1866" or the "Merchant Shipping Act, 1854", the Governor General in Council was empowered to by the "Indian Marine Service Act, 1884" to help formulate maritime and naval laws. These laws were first formulated and codified in the "Indian Marine Act, 1887" and followed by an amendment act to the same in the next year. The former adopted the general lines of the Naval Discipline and Indian Navy Acts as far as possible, whilst the latter merely supplied deficiencies in regard to grading and rating. In recognition of its fighting services, HMIM was given the title of "Royal Indian Marine" in 1892. By this time it consisted of over fifty vessels. In 1905, the service was described as having "Government vessels engaged in troop-ship, surveying, police or revenue duties in the East Indies". When mines were detected off the coasts of Bombay and Aden, during the First World War, the Royal Indian Marine went into action with a fleet of minesweepers, patrol vessels and troop carriers. Besides patrolling, the Marine ferried troops and carried war stores from India to Mesopotamia (now Iraq), Egypt and East Africa. The first Indian to be granted a commission was Engineer Sub-Lieutenant D.N. Mukherji, who joined the Royal Indian Marine as an officer on 6 January 1923. World War II In 1934, the Royal Indian Marine changed its name, with the enactment of the Indian Navy (Discipline) Act of 1934. The Royal Indian Navy was formally inaugurated on 2 October 1934, at Bombay. Its ships carried the prefix HMIS, for His Majesty's Indian Ship. At the start of the Second World War, the Royal Indian Navy was small, with only eight warships. The onset of the war led to an expansion in vessels and personnel described by one writer as "phenomenal". By 1943 the strength of