Fixed null pointer exceptions, debugging is complete!