Added return to all functions so it works on go 1.My mistake