Updated to use slim framework