Add wrapper function for decode & window