Added parsing function to determine action