More bug fixes, created background environment