Successfully solved #1. Hackish way of doing it.