Working version of pi player; Some hacks included