Checking for wpba function first