Making plugin compatible for Nexus 2.5+