Allow to specify custom application class