Added printing to lcd while checking access. Added malloc.