Checked functionality and align codes for running on Linux (Debian)