Auto methods generation