Added stuff for compatibility with pico