Correctly pass parameters from client to AM. Was missing a main method.