Implemented APCICA, some memory bugs exist