Refactored webcall