Added static magic method to Pi gateway