Make application work with this method (almost)