Initial implementation of Popcorn