Added ability to take in parameters from POST